import request from '@/utils/request'
export default {
  departmentList(params) {
    return request({
      url: '/v1/departmentList',
      method: 'get',
      params
    })
  },
  delete(data){
    return request( {
      url: `/v1/departmentDel`,
      method:'post',
      data
    })
  },
  detail(id) {
    return request({
      url: `/v1/department/${id}`,
      method: 'get'
    })
  },
  create(data) {
    return request({
      url: `/v1/departmentAdd`,
      method: 'post',
      data
    })
  },
  update(data) {
    return request({
      url: `/v1/departmentUpdate`,
      method: 'post',
      data
    })
  },

}
